package de.sendorian.util;

import java.util.List;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang.StringUtils;


public class CollectionUtils {

    public static boolean containsIgnoreCase(@Nullable String s, @Nonnull List<String> sList) {
        for (String stringInList : sList) {
            if (StringUtils.equalsIgnoreCase(s, stringInList))
                return true;
        }
        return false;
    }

}
